package com.example.studentapi.repository;

import com.example.studentapi.entity.Student;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

// 第二个泛型参数改为Long（对应实体类主键类型）
public interface StudentRepository extends JpaRepository<Student, Long> {
    Page<Student> findByStudentNameContaining(String studentName, Pageable pageable);
}